package com.qiangesoft.cloud.feignconsumer.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@Component
@FeignClient(value = "provider-payment", fallback = PaymentFallbackService.class)
public interface PaymentService {

    @GetMapping("/payment/add")
    String add(@RequestParam("name") String name);

    @GetMapping("/payment/addHystrix")
    String addHystrix(@RequestParam("name") String name);
}
